package com.xingxue.logistics.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("用户模型")
public class SysUser {

    @ApiModelProperty("主键")
    private Integer id;

    @ApiModelProperty("昵称")
    private String nick;

    @ApiModelProperty("账号")
    private String account;

    @ApiModelProperty("密码")
    private String pwd;

    @ApiModelProperty(value = "状态（0:无效;1:有效）",allowableValues = "{0,1}")
    private Integer state;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", nick=").append(nick);
        sb.append(", account=").append(account);
        sb.append(", pwd=").append(pwd);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }
}